/**
 * @description 设备属性管理--用于拓扑图新增节点
 * @prop {deviceFirstProperty}
 * @prop {deviceSecondProperty}
 * @prop {deviceThirdProperty}}
 * @prop {deviceFourthProperty}
 */
export const deviceFirstProperty = [
    { label: '天线', value: "antenna", has: false },
    { label: '光端发射通道', value: "light-transmitter-channel", has: true },
    { label: '光端接受通道', value: "light-receiver-channel", has: true },
    { label: '下变频通道', value: "down-converter-channel", has: true },
    { label: '矩阵', value: "matrix", has: true },
    { label: '解调通道', value: "demodulator-channel", has: true },
]

export type baseProperty = {
    property: { label: string; value: string; next?: string | undefined }[];
    has: boolean;
    oldPro?: string | undefined;
}
export type DeviceProperty = Record<string, baseProperty>;
export const deviceSecondProperty: DeviceProperty = {
    'light-transmitter-channel': {
        property: [
            { label: 'x频段', value: "x", next: 'x' },
            { label: 's频段', value: "s", next: 's' },
        ],
        has: true,
    },
    'light-receiver-channel': {
        property: [
            { label: 'x频段', value: "x", next: 'x' },
            { label: 's频段', value: "s", next: 's' },
        ],
        has: true,
    },
    'down-converter-channel': {
        property: [
            { label: 'S/70M', value: "sto70m", next: 'sto70m' },
            { label: 'X/70M', value: "xto70m", next: 'xto70m' },
            { label: 'X/1.2G', value: "xto1p2g", next: 'xto1p2g' },
        ],
        has: true
    },
    'matrix': {
        property: [
            { label: '射频', value: "radio-frequency", next: 'radio-frequency' },
        ],
        has: true
    },
    'demodulator-channel': {
        property: [
            { label: '高速', value: "high-rate", next: 'high-rate' },
        ],
        has: true
    }
}

export const deviceThirdProperty: DeviceProperty = {
    x: { property: [{ label: '通道1', value: 'double-channel', next: 'x' }], has: true, },
    s: { property: [{ label: '通道1', value: 'double-channel', next: 's' }], has: true, },
    sto70m: { property: [{ label: '通道1', value: 'double-channel', next: 'sto70m' }], has: true, },
    xto70m: { property: [{ label: '通道1', value: 'double-channel', next: 'xto70m' }], has: true, },
    'radio-frequency': { property: [{ label: '爱科特', value: 'akt', next: 'matrix' }], has: false, },
    'xto1p2g': { property: [{ label: '通道1', value: 'double-channel', next: 'sto70m' }], has: true, },
    'high-rate': { property: [{ label: '通道1', value: 'double-channel', next: 'high-rate' }], has: true, },
}
export const deviceFourthProperty: DeviceProperty = {
    x: { property: [{ label: '34所', value: 'thirtyfourth', }], has: false },
    s: { property: [{ label: '34所', value: 'thirtyfourth', }], has: false },
    sto70m: { property: [{ label: '爱科特', value: 'akt', }], has: false },
    xto70m: { property: [{ label: '爱科特', value: 'akt', }], has: false },
    'xto1p2g': { property: [{ label: '爱科特', value: 'akt', }], has: false },
    'high-rate': {
        property: [
            { label: '融为', value: 'rw', },
            { label: '清华', value: 'qh', }
        ],
        has: false
    },
}